package com.bit.ioc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@ResponseBody
@Controller
//@Service
public class UserController {
    @RequestMapping("/hello")
    public String hello(){
        return "测试Controller和Service区别";
    }
}
